<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            height: 3000px;
            width: 3000px;
        }
    </style>
</head>
<body>
    <script src="js/jquery-3.2.1.js"></script>
    <script>
        // 页面有滚动条的时候触发，监听页面滚动
        $(window).scroll(function(){
            console.log($(window).scrollTop(), $(window).scrollLeft())
        })

        // 窗口大小发生变化的shih
        $(window).resize(function(){
            console.log('11111111')
        })
    </script>
</body>
</html>